package com.yanfan.iot.domain;

import com.yanfan.common.annotation.Excel;
import com.yanfan.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 设备分组对象 iot_group
 *
 * @author kerwincui
 * @date 2021-12-16
 */
@ApiModel(value = "Group", description = "设备分组对象 iot_group")
public class Group extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 分组ID
     */
    @ApiModelProperty("分组ID")
    private Long groupId;

    /**
     * 分组名称
     */
    @ApiModelProperty("分组名称")
    @Excel(name = "分组名称")
    private String groupName;

    /**
     * 分组排序
     */
    @ApiModelProperty("分组排序")
    @Excel(name = "分组排序")
    private Long groupOrder;

    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    @Excel(name = "用户ID")
    private Long userId;

    /**
     * 用户昵称
     */
    @ApiModelProperty("用户昵称")
    @Excel(name = "用户昵称")
    private String userName;

    /**
     * 删除标志（0代表存在 2代表删除）
     */
    @ApiModelProperty("删除标志")
    private String delFlag;
    /**
     * 是否是网关（0代表否 1代表是）
     */
    @ApiModelProperty("是否是网关")
    private Integer isGateway;

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public String getGroupName() {
        return groupName;
    }

    public void setGroupName(String groupName) {
        this.groupName = groupName;
    }

    public Long getGroupOrder() {
        return groupOrder;
    }

    public void setGroupOrder(Long groupOrder) {
        this.groupOrder = groupOrder;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public Integer getIsGateway() {
        return isGateway;
    }

    public void setIsGateway(Integer isGateway) {
        this.isGateway = isGateway;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("groupId", getGroupId())
                .append("groupName", getGroupName())
                .append("groupOrder", getGroupOrder())
                .append("userId", getUserId())
                .append("userName", getUserName())
                .append("delFlag", getDelFlag())
                .append("isGateway", getIsGateway())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
